(url-display-percentage): Only show a message if `url-show-status' is non-nil.
authorMagnus Henoch <mange@freemail.hu>
Thu, 23 Nov 2006 08:40:50 +0000 (08:40 +0000)
committerMagnus Henoch <mange@freemail.hu>
Thu, 23 Nov 2006 08:40:50 +0000 (08:40 +0000)
lisp/url/url-util.el

index 0aeb141c0175bff92520d8f8371dbef75dc83957..57c0f05661dbddb292a3668b51c689b59f5c26e1 100644 (file)
@@ -244,12 +244,13 @@ Will not do anything if `url-show-status' is nil."
 
 ;;;###autoload
 (defun url-display-percentage (fmt perc &rest args)
-  (if (null fmt)
-      (if (fboundp 'clear-progress-display)
-         (clear-progress-display))
-    (if (and (fboundp 'progress-display) perc)
-       (apply 'progress-display fmt perc args)
-      (apply 'message fmt args))))
+  (when url-show-status
+    (if (null fmt)
+       (if (fboundp 'clear-progress-display)
+           (clear-progress-display))
+      (if (and (fboundp 'progress-display) perc)
+         (apply 'progress-display fmt perc args)
+       (apply 'message fmt args)))))
 
 ;;;###autoload
 (defun url-percentage (x y)